Skip to main content
Version: 1.0.2

Deep Learning

ONNXModel

from synapse.ml.onnx import ONNXModel

model_path = "PUT_YOUR_MODEL_PATH"
onnx_ml = (ONNXModel()
.setModelLocation(model_path)
.setFeedDict({"float_input": "features"})
.setFetchDict({"prediction": "output_label", "rawProbability": "output_probability"}))
Python API: ONNXModelScala API: ONNXModelSource: ONNXModel